<?php

namespace Module\VConsole\Admin\Controller;

use Illuminate\Routing\Controller;
use ModStart\Admin\Layout\AdminConfigBuilder;

class ConfigController extends Controller
{
    public function index(AdminConfigBuilder $builder)
    {
        $builder->pageTitle('VConsole');
        $builder->switch('VConsole_Enable', '开启VConsole');
        $builder->switch('VConsole_MobileDetect', '仅手机访问显示VConsole');
        $builder->formClass('wide-lg');
        return $builder->perform();
    }
}
